package smcms.service.product.mapper;

import org.apache.ibatis.annotations.Mapper;
import smcms.service.product.entity.*;

import java.util.List;

@Mapper
public interface ProductMapper {
    void insertProduct(ProductReq productReq);
    void updateProduct(ProductReq productReq);
    void deleteProduct(ProductReq productReq);
    List<ProductResp> queryProductByOPs(ProductReq productReq);
    List<ProductTemp> queryProductExport(ProductReq productReq);
    List<CategoryResp> queryProductType(ProductReq productReq);
    ProductResp queryProductOne(ProductReq productReq);
    String queryStoreIdByAccount(ProductReq productReq);
    void updateProductInventory(InventoryPlus inventoryPlus);
    void updateProductSale(InventoryPlus inventoryPlus);
    Integer queryInventory(InventoryPlus inventoryPlus);
}
